
import 'Definition.dart';

class MomentPublishParams extends Definition {
  
	/// 编号
	int? id;
	/// 内容
	String? content;
	/// 附件, 例如[{"url": "", "name": "", "type": "image"}]
	String? attachments;
	/// 附件类型 - VIDEO IMAGE
	String? attach_type;
	/// 定位，例如：{ "lat": 32, "lnt": 100}
	String? location;
	/// 定位地点名称
	String? address;
	/// 可视范围 - 全部可看 特定朋友可看 特定分组可看 仅自己可看 仅关注可看 仅通讯录可看 ALL, USERS, GROUPS, FOCUS, CONTACT, ONLY_ME
	String? view_target;
	/// 可视范围 - 目标集合
	String? target_ids;
	/// 是否提醒目标用户
	dynamic notice;

  @override
  Map<String, dynamic> toJson() {
    return {
			"id": id,
			"content": content,
			"attachments": attachments,
			"attach_type": attach_type,
			"location": location,
			"address": address,
			"view_target": view_target,
			"target_ids": target_ids,
			"notice": notice,
    };
  }

  @override
  void fromJson(Map<String, dynamic> json) {
		id = json["id"];
		content = json["content"];
		attachments = json["attachments"];
		attach_type = json["attach_type"];
		location = json["location"];
		address = json["address"];
		view_target = json["view_target"];
		target_ids = json["target_ids"];
		notice = json["notice"];
  }
  
}
  